﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace QuickStart
{
	/// <summary>
	/// Trivial presenter for the main UI as it doesn't do much.
	/// </summary>
	internal class MainPresenter
	{
		MainForm view;
		ITaskService tasks;

		public MainPresenter(MainForm view, ITaskService tasks)
		{
			this.view = view;
			this.tasks = tasks;

			view.AddTasks(tasks);
		}

		public void Execute(string taskName)
		{
			tasks.Execute(taskName);
		}
	}
}
